package com.ys.erp.entity.data.bean;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.Map;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

/**
 * @author lwj
 * @date 2025/5/17
 */
    
@Data
@TableName(value = "t_cat_money_pup_gear")
public class CatMoneyPupGear {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 挡位名称
     */
    @TableField(value = "gear_name")
    private String gearName;

    /**
     * 充值金额
     */
    @TableField(value = "pup_amount")
    private Long pupAmount;

    /**
     * 赠送金额
     */
    @TableField(value = "gift_amount")
    private Long giftAmount;

    @TableField(value = "gift_type")
    private String giftType;

    /**
     * 文案
     */
    @TableField(value = "`text`")
    private String text;

    /**
     * 是否禁用
     */
    @TableField(value = "is_disabled")
    private Integer isDisabled;

    /**
     * 操作人id
     */
    @TableField(value = "emp_id")
    private Long empId;

    /**
     * 是否删除
     */
    @TableField(value = "del_flag")
    private Integer delFlag;

    /**
     * 版本号
     */
    @TableField(value = "version")
    @Version
    private Integer version;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", update = "now()")
    private LocalDateTime updateTime;


    @AllArgsConstructor
    @Getter
    public enum Enums {

        YS_MONEY,
        YS_PULSE,
        ;
    }

    public static final Map<String, String> ENUM_MAP = new HashMap<>();

    static {
        ENUM_MAP.put(CatMoneyPupGear.Enums.YS_MONEY.toString(), "幺币");
        ENUM_MAP.put(CatMoneyPupGear.Enums.YS_PULSE.toString(), "幺豆");
    }

    public static boolean isContainsKey(String key) {
        return ENUM_MAP.containsKey(key);
    }


}